package com.mobisys.live.dao.mapper;

import com.mobisys.live.dao.model.LiveWithBLOBs;
import com.mobisys.live.dao.model.UserGroup;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserGroupMapper {
    int deleteByPrimaryKey(String id);

    int insert(UserGroup record);

    int insertSelective(UserGroup record);

    UserGroup selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserGroup record);

    int updateByPrimaryKey(UserGroup record);

    //根据用户组名查找用户组
    UserGroup selectByUserGroupName(String name);

    //分页获取用户组列表
    List<UserGroup> selectUserGroupByPage(@Param("userId") String userId,@Param("page") int page, @Param("size") int size,  @Param("sort") String sort);

    //批量删除用户组，把is_delete位置为1
    int deleteUserGroup(@Param("idList") List<String> idList);

}